#import "CTRefuseBottomView.h"
@implementation CTRefuseBottomView
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        [self setUI];
    }
    return self;
}
- (void)setUI {
    [self addSubview:self.cancleButton];
    [self addSubview:self.confirmButton];
}
- (void)cancelButtonClick {
}
- (void)confirmButtonClick {
}
- (UIButton *)cancleButton
{
    if (!_cancleButton) {
        _cancleButton = [UIButton buttonWithType:UIButtonTypeCustom];
        _cancleButton.backgroundColor = [UIColor whiteColor];
        _cancleButton.frame = CGRectMake(Ratio(44), Ratio(13), Ratio(122), Ratio(44));
        _cancleButton.titleLabel.font = [UIFont systemFontOfSize:Ratio(16)];
        [_cancleButton setTitleColor:[UIColor colorFF6C2E] forState:UIControlStateNormal];
        [_cancleButton setTitle:@"Exit" forState:UIControlStateNormal];
        _cancleButton.layer.cornerRadius = Ratio(6);
        _cancleButton.layer.masksToBounds = YES;
        _cancleButton.layer.borderWidth = 1;
        _cancleButton.layer.borderColor = [UIColor colorFF6C2E].CGColor;
    }
    return _cancleButton;
}
- (UIButton *)confirmButton
{
    if (!_confirmButton) {
        _confirmButton = [UIButton buttonWithType:UIButtonTypeCustom];
        _confirmButton.backgroundColor = [UIColor colorFF6C2E];
        _confirmButton.frame = CGRectMake(kScreenWidth-Ratio(166), Ratio(13), Ratio(122), Ratio(44));
        _confirmButton.titleLabel.font = [UIFont systemFontOfSize:Ratio(16)];
        [_confirmButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [_confirmButton setTitle:@"Continue " forState:UIControlStateNormal];
        _confirmButton.layer.cornerRadius = Ratio(6);
        _confirmButton.layer.masksToBounds = YES;
    }
    return _confirmButton;
}
@end
